import request from '@/utils/request'

/**
 * 获取员工
 * @param {*} params
 * @returns
 */
export function getEmployeeList(params) {
  return request({
    url: '/vue-admin-template/employee/list',
    method: 'get',
    params
  })
}

/**
 * 添加员工
 * @param {*} Employee
 * @returns
 */
export function addEmployee(Employee) {
  return request({
    url: '/vue-admin-template/employee/add',
    method: 'post',
    data: Employee
  })
}

/**
 * 删除员工
 * @param {*} param
 * @returns
 */
export function deleteEmployee(params) {
  return request({
    url: '/vue-admin-template/employee/delete',
    method: 'post',
    data: params
  })
}
